import yagmail
def sent_mail(a):
    mail=yagmail.SMTP(user="3372266165@qq.com",password="yszczxfhrtsxdbch",host="smtp.qq.com")
    mail.send(to="3372266165@qq.com",subject="月考接口测试报告",contents="报告",attachments=a)